package org.travel.api.travel.pojo;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Objects;

@Entity
public class Flightsxinxi {
    private Integer xinId;
    private Integer flightsId;
    private String flightsText;
    private String flightsX;
    private String xinJia;
    private String xinMyni;
    private Integer xinXiao;

    @Id
    @Column(name = "XinId", nullable = false)
    public Integer getXinId() {
        return xinId;
    }

    public void setXinId(Integer xinId) {
        this.xinId = xinId;
    }

    @Basic
    @Column(name = "flightsId", nullable = false)
    public Integer getFlightsId() {
        return flightsId;
    }

    public void setFlightsId(Integer flightsId) {
        this.flightsId = flightsId;
    }

    @Basic
    @Column(name = "flightsText", nullable = false, length = 255)
    public String getFlightsText() {
        return flightsText;
    }

    public void setFlightsText(String flightsText) {
        this.flightsText = flightsText;
    }

    @Basic
    @Column(name = "flightsX", nullable = false, length = 255)
    public String getFlightsX() {
        return flightsX;
    }

    public void setFlightsX(String flightsX) {
        this.flightsX = flightsX;
    }

    @Basic
    @Column(name = "XinJia", nullable = true, length = 255)
    public String getXinJia() {
        return xinJia;
    }

    public void setXinJia(String xinJia) {
        this.xinJia = xinJia;
    }

    @Basic
    @Column(name = "XinMyni", nullable = true, length = 100)
    public String getXinMyni() {
        return xinMyni;
    }

    public void setXinMyni(String xinMyni) {
        this.xinMyni = xinMyni;
    }

    @Basic
    @Column(name = "XinXiao", nullable = true)
    public Integer getXinXiao() {
        return xinXiao;
    }

    public void setXinXiao(Integer xinXiao) {
        this.xinXiao = xinXiao;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Flightsxinxi that = (Flightsxinxi) o;
        return Objects.equals(xinId, that.xinId) &&
                Objects.equals(flightsId, that.flightsId) &&
                Objects.equals(flightsText, that.flightsText) &&
                Objects.equals(flightsX, that.flightsX) &&
                Objects.equals(xinJia, that.xinJia) &&
                Objects.equals(xinMyni, that.xinMyni) &&
                Objects.equals(xinXiao, that.xinXiao);
    }

    @Override
    public int hashCode() {
        return Objects.hash(xinId, flightsId, flightsText, flightsX, xinJia, xinMyni, xinXiao);
    }
}
